package com.listener;

import com.thread.ThreadQuartz;
import com.utils.DateUtil;
import java.util.Date;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;

public class SysListener extends HttpServlet
  implements ServletContextListener
{
  private static final long serialVersionUID = -7106672475983633319L;

  public void contextDestroyed(ServletContextEvent sce)
  {
  }

  public void contextInitialized(ServletContextEvent sce)
  {
    System.setProperty("DateTime", DateUtil.getDateStr(new Date()));
//    ThreadQuartz threadQuartz = new ThreadQuartz();
//    Thread thread = new Thread(threadQuartz);
//    thread.start();
  }
}